import { createRouter, createWebHashHistory } from "vue-router";
import Layout from "../layout/index.vue"

export const routes = [
    {
        path: '/',
        component: ()=> import('../views/login/index.vue')
    },
    {
        path: '/center',
        redirect: '/center/home',
        component: Layout,
        children: [
            {
                path: 'home',
                component: ()=> import('../views/home/index.vue')
            }
        ]
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
